/**
 * 管理员审核操作接口API
 */
import request from '@/utils/request'
// import qs from 'qs'

// 获取审核数量, 无权限code为0
const getAuditData = (query) => {
  return request({
    url: 'addons/venues/auditing/data',
    method: 'get',
    params: query
  })
}

// 获取审核列表
const getAuditList = (query) => {
  return request({
    url: 'addons/venues/auditing/lists',
    method: 'get',
    params: query
  })
}

// 根据id获取审核详情
const getAuditDetailsById = (query) => {
  return request({
    url: 'addons/venues/auditing/detail',
    method: 'get',
    params: query
  })
}

// 获取接待人员数据
const getAuditPerson = (query) => {
  return request({
    url: 'addons/venues/auditing/person',
    method: 'get',
    params: query
  })
}

// 根据id审核预约, type{0: 取消, 1: 通过}
const applyAuditById = (query) => {
  return request({
    url: 'addons/venues/auditing/apply',
    method: 'get',
    params: query
  })
}

export default {
  getAuditData,
  getAuditList,
  getAuditDetailsById,
  getAuditPerson,
  applyAuditById
}
